<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
</html>
<script>
    let a = Math.floor(Math.random() * 100 + 1); // 1~100
    let b = Math.floor(Math.random() * 100 + 1); // 1~100
    // 赋值运算符
    let a1 = a
    console.log(a1)
    a1 += a; // a1 = a1 + a;
    console.log(a1)
    a1 -= a;
    console.log(a1)
    a1 *= a;
    console.log(a1)
    a1 /= a;
    console.log(a1)
    a1 %= a;
    console.log(a1)
    // 关系(比较)运算符
    console.log(a + '...' + b)
    let b1 = a === b; // JS使用===代替Java中的==
    console.log(b1)
    let b2 = a > b;
    console.log(b2)
    let b3 = a >= b;
    console.log(b3)
    let b4 = a < b;
    console.log(b4)
    let b5 = a <= b;
    console.log(b5)
    let b6 = a !== b;
    console.log(b6)
    // 算数运算符 + - * / % ++ --
    let c1 = a + b;
    console.log(c1)
    let c2 = a - b;
    console.log(c2)
    let c3 = a * b;
    console.log(c3)
    let c4 = a * b;
    console.log(c4)
    let c5 = a * b;
    console.log(c5)
    let c6 = 3;
    console.log(c6++)
    console.log(c6--)
    console.log(++c6)
    console.log(--c6)
    // 逻辑运算符 && || !
    let d1 = a > 10 && b > 10;
    console.log(d1)
    let d2 = a > 10 || b > 10;
    console.log(d2)
    let d3 = !(a > 10 && b > 10);
    console.log(d3)
</script>